<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">View Exam</a>
            </li>
        </ul>
    </div>



    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>All Exams</h2>

                    <div class="box-icon">
                       
                    </div>
                </div>
                <div class="box-content">
                    <table class="table">
                        <thead>
                            <tr>
                               
                                <th>Name</th>
                                <th>sdate</th>
                                <th>edate</th>
                                <th>semester</th>
                                <th>Branch</th>
                                <th>Added By</th>
                            </tr>
                        </thead>
                        <tbody>


                            <c:forEach items="${sessionScope.page_li_allexams}" var="exam">
                                <tr id="tr_${exam.id}">
                                    
                                    <td class="center" id="td_name_${exam.id}">${exam.name}</td>
                                    <td class="center" id="td_sdate_${exam.id}">${exam.sdate}</td>
                                    <td class="center" id="td_edate_${exam.id}">${exam.edate}</td>
                                    <td class="center" id="td_semester_${exam.id}">${exam.semester}</td>
                                    <td class="center" id="td_branch_${exam.id}">${exam.branch.name}</td>
                                    <td class="center" id="td_addedby_${exam.id}">${exam.faculty.fname}</td>
                                   
                                    <td class="center">
<!--                                        <a href="#myModal" class="btn-info btn-setting view_anchor" id="view_${student.id}" ><button class='label-success label label-default'>View</button></a>-->
                                       
                                    </td>
                                </tr>
                            </c:forEach>

                        </tbody>
                    </table>
                    <ul class="pagination pagination-centered">

                        <c:forEach begin="1" end="${sessionScope.pagelink}" var="i">
                            <li class="active">
                                <a href="PageAction.do?pageid=<c:out value="${i}"></c:out>&action=student_exam">${i}</a>
                                </li>
                        </c:forEach>


                    </ul>
                </div>
            </div>
        </div>
        <!--/span-->


        <!--/span-->
    </div>
</div>